package com.lill.sale.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 销售台账实体
 * 表名 sale_book
 *
 * @author lill
 * @date 2021-09-25 11:41:47
 */
public class SaleBookModel implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    private String bookNo;
    /**
     * 客户
     */
    private String customerId;
    private String customerName;
    private SaleCustomerModel saleCustomerInfo;
    private String idcard;
    private String address;
    private String tel;
    /**
     * 销售人员
     */
    private String personId;
    private String personName;
    private String personPhone;
    /**
     * 销售库存车辆
     */
    private List<SaleCarModel> saleCarList;
    /**
     * 付款方式 (1：全款、2：分期)
     */
    private Integer payment;
    /**
     * 定金
     */
    private BigDecimal deposit;
    /**
     * 余款
     */
    private BigDecimal residue;
    /**
     * 应付金额
     */
    private BigDecimal sumAmount;
    /**
     * 状态：1-提交  2-审批通过  3-付款完成
     */
    private Integer state;
    /**
     * 状态 -1：删除 0：冻结   1：有效
     */
    private Integer status;
    /**
     * 创建者ID
     */
    private String createUser;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新者ID
     */
    private String updateUser;
    /**
     * 更新时间
     */
    private Date updateTime;


    private String financeName;

    private String content;


    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getFinanceName() {
        return financeName;
    }

    public void setFinanceName(String financeName) {
        this.financeName = financeName;
    }

    /**
     * 设置：主键
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取：主键
     */
    public String getId() {
        return id;
    }
    public String getBookNo() {
		return bookNo;
	}

	public void setBookNo(String bookNo) {
		this.bookNo = bookNo;
	}

	/**
     * 设置：客户
     */
    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    /**
     * 获取：客户
     */
    /**
     * @return
     */
    public String getCustomerId() {
        return customerId;
    }
    public String getCustomerName() {
		return customerName;
	}
    
	public SaleCustomerModel getSaleCustomerInfo() {
		return saleCustomerInfo;
	}

	public void setSaleCustomerInfo(SaleCustomerModel saleCustomerInfo) {
		this.saleCustomerInfo = saleCustomerInfo;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getIdcard() {
		return idcard;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getPersonId() {
		return personId;
	}

	public void setPersonId(String personId) {
		this.personId = personId;
	}

	public String getPersonName() {
		return personName;
	}

	public void setPersonName(String personName) {
		this.personName = personName;
	}

	public String getPersonPhone() {
		return personPhone;
	}

	public void setPersonPhone(String personPhone) {
		this.personPhone = personPhone;
	}

	public List<SaleCarModel> getSaleCarList() {
		return saleCarList;
	}

	public void setSaleCarList(List<SaleCarModel> saleCarList) {
		this.saleCarList = saleCarList;
	}

	/**
     * 设置：付款方式 (1：全款、2：分期)
     */
    public void setPayment(Integer payment) {
        this.payment = payment;
    }

    public BigDecimal getDeposit() {
        return deposit;
    }

    public void setDeposit(BigDecimal deposit) {
        this.deposit = deposit;
    }

    /**
     * 获取：付款方式 (1：全款、2：分期)
     */
    public Integer getPayment() {
        return payment;
    }
    public BigDecimal getResidue() {
		return residue;
	}

	public void setResidue(BigDecimal residue) {
		this.residue = residue;
	}

	/**
     * 设置：应付金额
     */
    public void setSumAmount(BigDecimal sumAmount) {
        this.sumAmount = sumAmount;
    }

    /**
     * 获取：应付金额
     */
    public BigDecimal getSumAmount() {
        return sumAmount;
    }
    /**
     * 设置：状态：1-提交  2-审批通过  3-付款完成
     */
    public void setState(Integer state) {
        this.state = state;
    }

    /**
     * 获取：状态：1-提交  2-审批通过  3-付款完成
     */
    public Integer getState() {
        return state;
    }
    /**
     * 设置：状态 -1：删除 0：冻结   1：有效
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 获取：状态 -1：删除 0：冻结   1：有效
     */
    public Integer getStatus() {
        return status;
    }
    /**
     * 设置：创建者ID
     */
    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    /**
     * 获取：创建者ID
     */
    public String getCreateUser() {
        return createUser;
    }
    /**
     * 设置：创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取：创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }
    /**
     * 设置：更新者ID
     */
    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    /**
     * 获取：更新者ID
     */
    public String getUpdateUser() {
        return updateUser;
    }
    /**
     * 设置：更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取：更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }
}
